package com.coocaa.internship.service;

import com.github.qcloudsms.httpclient.HTTPException;

import java.io.IOException;

public interface SMSService {
    /**
     * 发送短信验证码
     *
     * @return
     */
    String CodeSend(String telephoneNumber) throws HTTPException, IOException;

    /**
     * 短信验证
     *
     * @param code
     * @param telephoneNumber
     * @return
     */
    boolean CodeValidate(String code, String telephoneNumber);
}
